import request from '@/utils/request'

// 查询菜品管理列表
export function listRespakdish(query) {
  return request({
    url: '/system/respakdish/list',
    method: 'get',
    params: query
  })
}

export function listRespakdish1(query) {
  return request({
    url: '/system/respakdish/list1',
    method: 'get',
    params: query
  })
}

export function listRespakdish2(query) {
  return request({
    url: '/system/respakdish/list2',
    method: 'get',
    params: query
  })
}

// 查询菜品管理详细
export function getRespakdish(treeId) {
  return request({
    url: '/system/respakdish/' + treeId,
    method: 'get'
  })
}

// 新增菜品管理
export function addRespakdish(data) {
  return request({
    url: '/system/respakdish',
    method: 'post',
    data: data
  })
}

// 修改菜品管理
export function updateRespakdish(data) {
  return request({
    url: '/system/respakdish',
    method: 'put',
    data: data
  })
}

// 删除菜品管理
export function delRespakdish(treeId) {
  return request({
    url: '/system/respakdish/' + treeId,
    method: 'delete'
  })
}
